package com.raymond.httpclient.annotation;

import com.raymond.httpclient.enums.HttpMethod;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * http服务
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2021-04-01 09:19
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMapper {
    /**
     * url地址
     * @return url
     */
    String value();

    HttpMethod method() default HttpMethod.POST;

    String[] headers() default {};
}
